import server from '../utils/request'
export function addUsers(data) {
    console.log(11111,data)
    return server({
        method: "POST",
        url: "/api/manage/user/add",
        data
    })
}
export function updateUsers(data) {
    return server({
        method: "POST",
        url: "/api/manage/user/update",
        data
    })
}
export function delUsers(data) {
    return server({
        method: "POST",
        url: "/api/manage/user/delete",
        data:{
            userId:data
        }
    })
}

export function getUsers(obj) {
    return server({
        method: "GET",
        url: "/api/manage/user/list",
        params:obj
    })
}


//设置权限
export function updataRole(data) {
    return server({
        method: "POST",
        url: "/api/manage/role/update",
        data
    })
}